<seed-content>
  <seed-toolbar-header>
    <seed-toolbar-title>{{paramObj?.testItemText}}测试成绩({{paramObj?.ageGroupText}})</seed-toolbar-title>
    <seed-toolbar-menu></seed-toolbar-menu>
  </seed-toolbar-header>

  <div class="train-title">
    <div class="test-name">{{paramObj?.testMethodName}}</div>
    <div class="score-history"
         [routerLink]="['/train/parent/history-scores',paramObj.studentId, paramObj.levelId,paramObj.testModeId,paramObj.testMethodId]"
         [queryParams]="{
               testItemText: paramObj?.testItemText,
               testMethodName: paramObj?.testMethodName,
               ageGroupText: paramObj?.ageGroupText
             }">
      查看历史成绩
    </div>
  </div>
  <div class="echarts-box" *ngIf="showChart">
    <div class="circle-exp">
      <div class="first">学员当日成绩</div>
      <div class="sec">区间最好成绩</div>
      <div class="third">所有学员当日平均成绩</div>
    </div>
    <div id="broken-line-chart" *ngIf="showChart" echarts [options]="options"></div>
  </div>
  <seed-default-graph *ngIf="!showChart"></seed-default-graph>
  <!--非主观题-->
  <div class="score-list" *ngIf="firstScoreSimple?.testScoreType===1">
    <div class="score-item seed-underline">
      <div class="score-name">最好成绩</div>
      <div class="score-result">{{studentStestScoreSummary?.bestScore}}{{firstScoreSimple?.testScoreDesc}}</div>
    </div>
    <div class="score-item seed-underline">
      <div class="score-name">最好成绩比最差成绩提高了</div>
      <div class="score-result">{{studentStestScoreSummary?.bestWorstScoreDiff}}{{firstScoreSimple?.testScoreDesc}}</div>
    </div>
    <div class="score-item seed-underline">
      <div class="score-name">最近一次成绩与最好成绩相比</div>
      <div class="score-result">{{studentStestScoreSummary?.firstBestScoreDiff}}{{firstScoreSimple?.testScoreDesc}}</div>
    </div>
    <div class="score-item seed-underline">
      <div class="score-name">最近一次成绩与所有学员平均值相比</div>
      <div class="score-result">{{studentStestScoreSummary?.firstAllAvgScoreDiff}}{{firstScoreSimple?.testScoreDesc}}</div>
    </div>
  </div>
  <!--主观题-->
  <div class="score-list" *ngIf="firstScoreSimple?.testScoreType === 0">
    <div class="score-item seed-underline">
      <div class="score-name">获取卓越(A+)的次数</div>
      <div class="score-result">{{studentStestScoreSummary?.bestScore}}次</div>
    </div>
    <div class="score-item seed-underline">
      <div class="score-name">获取精良(A)的次数</div>
      <div class="score-result">{{studentStestScoreSummary?.bestWorstScoreDiff}}次</div>
    </div>
    <div class="score-item seed-underline">
      <div class="score-name">获取良好(B)的次数</div>
      <div class="score-result">{{studentStestScoreSummary?.firstBestScoreDiff}}次</div>
    </div>
    <div class="score-item seed-underline">
      <div class="score-name">获取掌握(C)的次数</div>
      <div class="score-result">{{studentStestScoreSummary?.firstAllAvgScoreDiff}}次</div>
    </div>
  </div>
</seed-content>
